package com.ruoyi.vote.app.domain.request;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 立勤
 * @date 2023/07/26 17:35:15
 */
@Data
public class SignJoinReq {

    /**
     * 活动ID
     */
    @NotNull(message = "活动编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long aId;

    /**
     * 活动类型  0文字, 1图片 ,2视频
     */
    private Integer aType;

    /**
     * 参赛选手名
     */
    @NotBlank(message = "参赛选手名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 参赛资源
     */
    private String avatar;

    /**
     * 参赛文字
     */
    private String content;

    /**
     * 宣言
     */
    @NotBlank(message = "宣言不能为空", groups = { AddGroup.class, EditGroup.class })
    private String declaration;
}
